package wechat.base.snd.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class TimeFormatter {
	public static String timeFormat(Date day){
		SimpleDateFormat f = new SimpleDateFormat("yyyy-MM-dd hh:mm");
		return day==null?null:f.format(day);
	}
	private String dateFormat(Date day){
		SimpleDateFormat f = new SimpleDateFormat("yyyy-MM-dd");
		return day==null?null:f.format(day);
	}
	private String hmFormat(Date day){
		SimpleDateFormat f = new SimpleDateFormat("HH:mm");
		return day==null?null:f.format(day);
	}
	private String hmsFormat(Date day){
		SimpleDateFormat f = new SimpleDateFormat("HH:mm:ss");
		return day==null?null:f.format(day);
	}
}
